package apiday02.homework;

import java.util.HashSet;
import java.util.Set;

public class SetDemo {
    public static void main(String[] args) {
        Set<Point> s = new HashSet<>();
        s.add(new Point(1,2));
        s.add(new Point(2,5));
        s.add(new Point(5,7));
        s.add(new Point(8,6));
        s.add(new Point(7,3));
        System.out.println(s);

        boolean flag = s.add(new Point(1,2));
        System.out.println(flag);
        System.out.println(s);

    }
}
